package com.cgtong.android.mvp.contract;

import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.exception.ApiException;

/**
 * Created by Sky.Bing on 2017/10/23.
 */

public interface RegisterContract {
    interface View {
        void sendValidCodeError(ApiException e);

        void breakClickValidCode();

        void onRegisterError(ApiException e);

        void onRegisterSuccess();

        void onLoginSuccess();

        void onLoginError();
    }

    interface Model {
        void sendValidCode(String phone,String imgValidCode, SimpleCallBack<Object> callBack);

        void doRegister(String phone, String mobileInfo, String validCode, String password, String confirmPassword, SimpleCallBack callBack);
    }

    interface Presenter {
        void sendValidCode(String phone,String imgValidCode);

        void doLogin(String phone, String password, String mobileInfo);

        void doRegister(String phone, String mobileInfo, String validCode, String password, String confirmPassword);
    }
}